
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
    <title>权限${id==null?"添加":"修改"}</title>
</head>
<body>
      <form action="${pageContext.request.contextPath}/right_${id==null?"add":"edit"}" method="post">
        <%--<s:set name="rightId" value="id"></s:set>--%>
        <input type="hidden" name="id" value="${id}">
        选择上级权限:
        <select name="parentId">
            <option ${id==null?"selected":""} value="">请选择权限</option>
        <s:iterator value="#rights">
            <option value="${id}" ${id == parentId?"selected":""}>
                ${name}
            </option>
        </s:iterator>
        </select>
        <br>
        权限名称:<input type="text" name="name" value="${name}"><br>
        权限URL:<input type="text" name="url" value="${url}">
        <button type="submit">提交</button>
  </form>
    <s:debug></s:debug>
</body>
</html>
